package com.bawei.park2211a.fg.msg

import androidx.lifecycle.MutableLiveData
import com.bawei.base.bean.MessgaeEntity
import com.bawei.base.mvvm.BaseViewModel
import com.bawei.base.net.ApiService
import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject
@HiltViewModel
class MsgViewModel @Inject constructor(var apiService: ApiService):BaseViewModel() {
    var messageSuccess= MutableLiveData<MutableList<MessgaeEntity>>()
    fun message( accessId:Int,userId:Int){
        httpRequest({apiService.message(accessId,userId)},{messageSuccess.postValue(it)})
    }
}